package pokerantani.v2.linematchers;

import java.util.List;
import java.util.regex.Pattern;

import pokerantani.v2.LineMatcher;
import pokerantani.v2.RE;
import pokerantani.v2.model.Card;


public class HeroGotCards extends LineMatcher {
	static final Pattern pCards = Pattern.compile("Dealt to Hero \\[(" + RE.CARD + ") (" + RE.CARD + ")\\]");

	public List<Card> cards;
	
	public boolean match(String line) {
		if(match(line, pCards)) {
			cards = groupCards(1, 2);
			return true;
		}
		return false;
	}
}
